package com.glut.campusrepair.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.glut.campusrepair.entity.RepairPersonnel;

/**
 * 维修人员表 服务类接口
 *
 * @author sanminzhi
 * @since 2024-07-19 11:26
 */
public interface IRepairPersonnelService extends IService<RepairPersonnel> {

//    IPage page1(IPage<RepairPersonnel> page);

    IPage page2(Page<RepairPersonnel> page, Wrapper wrapper);

    /**
     * 根据维修人员的用户名查找维修人员id
     * @param username
     * @return 维修人员id
     */
    Integer getRepairPersonnelId(String username);
}
